import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import uView from '@/uni_modules/uview-ui'
import TopNav from './components/top-navigation'
import SearchMenu from './components/search-menu'
// import Vant from "vant";
// import 'vant/lib/index.css';
//注意这里引入的是less文件而不是css文件，引入css文件会导致控制台报错无法编译成功
// import 'vant/lib/index.less'

Vue.component('TopNav',TopNav)
Vue.component('SearchMenu',SearchMenu)
Vue.use(uView)
// Vue.use(Vant)
Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
